projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72fad93
)
bgo#614006 - GtkFileSystemModel - Make sure to generate node IDs are valid for new...
author
Sergey Orlov
<wasp82@bk.ru>
Tue, 24 Aug 2010 18:17:15 +0000
(13:17 -0500)
committer
Federico Mena Quintero
<federico@novell.com>
Tue, 24 Aug 2010 22:09:37 +0000
(17:09 -0500)
When a file was inserted during the period that the editable row was
active, the node IDs would not get updated correctly.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
gtk/gtkfilesystemmodel.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilesystemmodel.c
b/gtk/gtkfilesystemmodel.c
index 5b29b9bc394e7cb9045c0ee585d3f2c2fefd9aa8..c6532c136f887d09f039e91e890d384f53fb7157 100644
(file)
--- a/
gtk/gtkfilesystemmodel.c
+++ b/
gtk/gtkfilesystemmodel.c
@@
-1777,7
+1777,10
@@
_gtk_file_system_model_update_file (GtkFileSystemModel *model,
id = node_get_for_file (model, file);
if (id == 0)
- add_file (model, file, info);
+ {
+ add_file (model, file, info);
+ id = node_get_for_file (model, file);
+ }
node = get_node (model, id);